package com.jiawa.wiki;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.core.env.ConfigurableEnvironment;

import javax.swing.*;

@SpringBootApplication
public class WikiApplication {
    public static void main(String[] args) {
       Logger logger = LoggerFactory.getLogger(WikiApplication.class);

        SpringApplication springApplication = new SpringApplication(WikiApplication.class);

        ConfigurableEnvironment environment = springApplication.run(args).getEnvironment();

        logger.info("启动成功！");
        logger.info(environment.getProperty("server.port"));
    }
}
